public class Main {
    public static void main(String[] args) throws InterruptedException {
        ElevatorManager manager = new ElevatorManager(2);
        manager.addRequest(new Request(0, 5));
        manager.addRequest(new Request(3, 1));
        manager.addRequest(new Request(2, 8));
        for (int i = 0; i < 17; i++) {
            System.out.println("--- 调度轮次 " + (i + 1) + " ---");
            manager.dispatch();
            Thread.sleep(1000);
        }
    }
}
